package com.ybzl.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ybzl.system.domain.IotData;
import com.ybzl.system.domain.IotDevice;
import com.ybzl.system.mapper.IotMapper;
import com.ybzl.system.service.IotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IotServiceImpl extends ServiceImpl<IotMapper, IotDevice> implements IotService {

    @Autowired
    private IotMapper iotMapper;


    @Override
    public List<IotDevice> devices() {
        return iotMapper.devices();
    }

    @Override
    public List<String> listjing() {
        return iotMapper.listjing();
    }

    @Override
    public List<IotData> queryDeviceData(String deviceId, String indexName, String startTime, String endTime, String fm) {
        return iotMapper.queryDeviceData(deviceId, indexName, startTime, endTime, fm);
    }

    @Override
    public List<String> indexsByDeviceId(String deviceId) {
        return iotMapper.indexsByDeviceId(deviceId);
    }
}
